Installation and setting up
Installation
To install Barikoi Api's library, navigate to your project folder and run the command:
- npm
- yarn
- pnpm
- bun
- deno
Just run this:
npm install barikoiapis
Just run this:
yarn add barikoiapis
Just run this:
pnpm create barikoiapis
Just run this:
bun create barikoiapis
Just run this:
deno run -A npm:barikoiapis
Get your own YOUR BARIKOI API KEY if you want to use autocomplete, reverseGeocode, nearby or rupantor data in your project.
Config
Import necessary functions from "barikoiapis" library. Set configuration with your Barikoi API key and version.
import { setConfig, autocomplete, reverseGeocode, nearby, rupantor } from "barikoiapis";
setConfig({
apiKey:
"YOUR_BARIKOI_API_KEY_HERE",
version: "v1",
});
After setting the config with YOUR BARIKOI API KEY you can get the data of autocomplete, reverseGeocode, nearby or rupantor API.